<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<head>
		<link href="${facesContext.externalContext.requestContextPath}/secure/css/stylesheet.css" rel="stylesheet" type="text/css"/>
	</head>
	<body style="background-color: #ffffff; background-image:none;">
<h:form>		
			<h:panelGrid columns="1" width="80%" styleClass="outerTable" columnClasses="standardTable_ColumnCentered">
			<f:facet name="header">
				<h:outputText style="font-weight:normal;" value="Imported Table"/>
			</f:facet>
			<h:column>
			<center>
			<t:dataTable renderedIfEmpty="false"  id="courtSideReceivedTable"
				value="#{CustomFilingsPage.data}" var="courtStatusFilingReceived"
				styleClass="iCubed" width="100%" rows="10" rowIndexVar="rowNumber" preserveSort="false"
                preserveDataModel="false" sortable="true"> 
	          	<h:column >
					<f:facet name="header">
						<h:outputText id="content" value="#" />
					</f:facet>
					<h:outputLabel value="#{rowNumber+1}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<t:commandSortHeader columnName="ocssNumber" arrow="true" immediate="true">
							<h:outputText value="OCSS Number"/>
						</t:commandSortHeader>					
					</f:facet>
						<h:outputText value="#{courtStatusFilingReceived.OCSSCaseNumber}"/>
					
				</h:column>
				
				
<!-- BROWNB -->				

				<h:column>
					<f:facet name="header">
						<t:commandSortHeader columnName="civilAction" arrow="true" immediate="true">
							<h:outputText value="Civil Action #"/>
						</t:commandSortHeader>					
					</f:facet>
					<h:outputText value="#{courtStatusFilingReceived.caseTrackingID}"/>
				</h:column>
				

<!-- BROWNB -->				
				
				
				
				<h:column >
					<f:facet name="header">
						<t:commandSortHeader  columnName="type" 
        					arrow="true" immediate="true" >
        					 <h:outputText value="Initiated Date" />
   						</t:commandSortHeader>
					</f:facet>
			
					<h:outputText value="#{courtStatusFilingReceived.instantiationDateTime}"> 
						<f:convertDateTime 
							dateStyle="medium" 
							timeZone="America/New_York" 
							type="date"/>
					</h:outputText>
				</h:column>
				<h:column >
					<f:facet name="header">
						<t:commandSortHeader  columnName="defendantFirstName" 
        					arrow="true" immediate="true" >
						<h:outputText id="defendantFirstName" value="Defendant Name" />
						</t:commandSortHeader>
					</f:facet>
					
					<h:outputText value="#{courtStatusFilingReceived.defendantName}" /> 
				</h:column>
				

			
					<h:column >
					<f:facet name="header">
						<h:outputText id="caseStatus"
							value="Case Status" />
					</f:facet>
 					<h:outputText value="#{courtStatusFilingReceived.status}" /> 

				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="lastEvent" value="Last Event" />
					</f:facet>
					<h:commandLink id="filingIDLink" value="Event Log"
								action="#{CustomFilingsPage.gotoHistoryPage}" target="_parent" >
								 <f:param name="caseUuid" value="#{courtStatusFilingReceived.uuid}"  />
						</h:commandLink> 
				</h:column >
				<h:column >
					<f:facet name="header">
						<t:commandSortHeader  columnName="type" 
        					arrow="true" immediate="true" >
							<h:outputText id="lastEventTime" value="Last Event Time" />
						</t:commandSortHeader>
					</f:facet>
						<h:outputText value="#{courtStatusFilingReceived.eventDateTime}"> 
							<f:convertDateTime 
								dateStyle="medium" 
								timeZone="America/New_York" 
								type="date"/>
						</h:outputText>
				</h:column>
				
				
				<h:column>
					<f:facet name="header">
						<h:outputText id="filingID" value="Case Details" />
					</f:facet>
					<h:commandLink  value="Case Details" action="#{CustomFilingsPage.gotoCaseDetailsPage}" target="_parent" rendered="#{CustomFilingsPage.renderCaseDetailLink}">
						<f:param name="caseUuid" value="#{courtStatusFilingReceived.uuid}"/>
					</h:commandLink>					
				</h:column>
				
			
				
				
									 
			</t:dataTable>
			</center>
			</h:column>			
			<h:column>
			<div align="center">
				<t:dataScroller fastStep="5"
					styleClass="scrollerTable" pageCountVar="pageCount"
					pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
					paginatorTableClass="paginator"
					paginatorActiveColumnStyle="font-weight:bold;" immediate="true"
					
					for="courtSideReceivedTable">
					<f:facet name="first">
						<t:graphicImage url="/images/arrow-first.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="last">
						<t:graphicImage url="/images/arrow-last.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="previous">
						<t:graphicImage url="/images/arrow-previous.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="next">
						<t:graphicImage url="/images/arrow-next.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastforward">
						<t:graphicImage url="/images/arrow-ff.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastrewind">
						<t:graphicImage url="/images/arrow-fr.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
				</t:dataScroller>
				</div>
				</h:column>
			</h:panelGrid>
		</h:form>
	</body>
</html>